package com.online.teaching.module.student.homework.domian.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @ClassName : AnswerAddDTO  //类名
 * @Description :   //描述
 * @Author : YG  //作者
 * @Date: 2020-11-04 20:47  //时间
 */
@Data
public class AnswerAddDTO {

    @ApiModelProperty(value = "答案id，如果曾经提交过就把这个带过来，第一次提交就留空",required = false)
    private Integer answerId;//

    @ApiModelProperty(value = "作业id")
    @NotNull(message = "请输入正确的作业id")
    private Integer homeworkId;

    @ApiModelProperty(value = "学生答案")
    @NotNull(message = "请输入正确的答案")
    private String answerContent;

}
